package com.mzd.multipledatasources4.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.mzd.multipledatasources4.bean.TeachersBean;
import com.mzd.multipledatasources4.dao.TransactionDao2;

@Service
public class TransactionService2 {
    @Autowired
    private TransactionDao2 ts2;

    @Transactional(rollbackFor = Exception.class)
    public boolean test02SaveTeachersBean(TeachersBean t) {
        return ts2.save(t);
    }

}
